package game;
import java.util.ArrayList;

public class NewRound{
	ArrayList<NewAgent> cabbage;
	Bag aBag = new Bag();
	public NewRound(ArrayList<NewAgent> players, int position){
		cabbage = new ArrayList<NewAgent>(players);
	}
	public ArrayList<NewAgent> play(){
		//communal tiles and personal 3 dealt.
		char[] threeTiles = aBag.getLetter(3);
		for(int i =0; i < cabbage.size(); i++){
			cabbage.get(i).rack.addLetter(aBag.getLetter(3));
			cabbage.get(i).rack.addLetter(threeTiles);			
		}
		//first round of betting.
		this.betRoundOne();
		//final two tiles dealt.
		char[] twoTiles = aBag.getLetter(2);
		for(int i =0; i < cabbage.size(); i++){
			cabbage.get(i).rack.addLetter(twoTiles);
		}
		this.betRoundTwo();
		return cabbage;
	}
	private void betRoundOne(){
		System.out.println("bet one");
	}
	private void betRoundTwo(){
		System.out.println("bet two");		
	}
}